{% load classify_path %}
<div class="table-responsive">
    <table class="table table-striped table-bordered table-hover table-body-valign-middle">
        <thead>
            <tr>
                <th width="80">分类ID</th>
                <th>分类路径</th>
                <th>分类名称</th>
                <th width="80">操作？</th>
        </tr>
        </thead>
        <tbody>
            {% for c in classifications %}
                <tr>
                    <td>{{ c.id }}</td>
                    <td>根分类 > {{ c.id | classify_path }}</td>
                    <td>{{ c.title }}</td>
                    <td><a href="javascript:void(0)" class="btn-classify-remove" data-id="{{ c.id }}">移除</a></td>
                </tr>
            {% empty %}
                <tr>
                <td colspan="4" align="center">未分类</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
</div>
<a href="javascript:void(0)" id="btn-classify-selector" class="btn btn-primary">添加分类</a>